package com.hcc.unitTest.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 商品信息表
 * </p>
 *
 * @author admin
 * @since 2023-11-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("item")
public class Item extends Model<Item> {


    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商品id
     */
    @TableField("item_id")
    private String itemId;

    /**
     * 型号
     */
    @TableField("model_id")
    private String modelId;

    /**
     * 所属店铺
     */
    @TableField("shop_name")
    private String shopName;

    /**
     * 逻辑删除
     */
    @TableField("logic_delete")
    private Integer logicDelete;

    @TableField("modified_time")
    private LocalDateTime modifiedTime;

    @TableField("modifier")
    private Long modifier;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("creator")
    private Long creator;


    public static final String ID = "id";

    public static final String ITEM_ID = "item_id";

    public static final String MODEL_ID = "model_id";

    public static final String SHOP_NAME = "shop_name";

    public static final String LOGIC_DELETE = "logic_delete";

    public static final String MODIFIED_TIME = "modified_time";

    public static final String MODIFIER = "modifier";

    public static final String CREATE_TIME = "create_time";

    public static final String CREATOR = "creator";


}
